package com.geek.factory.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 产品信息表
 * </p>
 *
 * @author author
 * @since 2025-07-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("product")
@ApiModel(value="Product对象", description="产品信息表")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "产品名称")
    private String name;

    @ApiModelProperty(value = "产品编号")
    private String code;

    @ApiModelProperty(value = "产品型号")
    private String model;

    @ApiModelProperty(value = "产品分类")
    private String category;

    @ApiModelProperty(value = "产品价格")
    private Double price;

    @ApiModelProperty(value = "产品描述")
    private String description;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime completeTime;

    @ApiModelProperty(value = "产品图片路径")
    private String pic;

    @ApiModelProperty(value = "生产状态：0  未完成 1已完成")
    private Integer status;

    @ApiModelProperty(value = "最低安全库存")
    private Integer minStock;

    @ApiModelProperty(value = "最高安全库存")
    private Integer maxStock;

}
